<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 * 
 * INSERT INTO  `bbs`.`t_message` (
`id` ,
`username` ,
`sex` ,
`content` ,
`avater` ,
`time_at`
)
VALUES (
NULL ,  'gbgfng',  'gf',  'gnfnsnjshf',  'sfnhyd',  ''
);


 */

require_once './db_conn.php';
$conn;
$suername = $_POST['username'];
$sex = $_POST['sex'];
$message = $_POST['message'];
$imgurl = $_POST['imgurl'];
$time_at = time();

$sql = "
    INSERT INTO  `bbs`.`t_message` (
`id` ,
`username` ,
`sex` ,
`content` ,
`avater` ,
`time_at`
)
VALUES (
NULL ,  '$suername',  '$sex',  '$message',  '$imgurl',  '$time_at'
);
  ";
$result = $conn->query($sql);
header("location:index6.php");
